<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>退房结账</title>
</head>
<body>
<div>
	<form action="income/benefit.action" method="post" id="form">
		<div align="center">
		<table>
			<tr><td>选择年月</td><td>工资发放</td><td>酒店收入</td><td>效益</td></tr>
			<tr>
				<td>
				<select name="dtMonth" id="month" onchange="doChang()">
					<c:if test="${checkMonth==null}"><option hidden="true">请选择查询的月份</option></c:if>
					<c:if test="${checkMonth!=null}"><option hidden="true">${checkMonth}</option></c:if>
					<c:forEach items="${month}" var="item">
						<option value="${item}">${item}</option>
					</c:forEach>
				</select>
				</td>
				<td>${wages}</td><td>${incomes}</td>
			</tr>
		</table>
		</div>
	</form>
</div>
</body>
	<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
	<script type="text/javascript">
		function doChang() {
			document.getElementById("form").submit();
		}
	</script>
</html>